module.exports = {
	publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
	outputDir: 'dist',
	assetsDir: "assets",
	productionSourceMap: false,
	filenameHashing: false,
  	css: {
  	  loaderOptions: {
  	    less: {
  	      javascriptEnabled: true,
  	    }
  	  }
  	},
	devServer: {
		hot: true, 
		open: true,
		hotOnly: true,
    port:9879,
		inline:true,
		disableHostCheck: true,
		proxy: {
			'/api': {
			   target: 'http://192.168.1.125:9876',
			   ws: false,
			   changeOrigin: true,
			   pathRewrite: {
			     '^/api': '/sn/api'
			   }
			 }
		},
	}
}